<?php

class setting_pages_process extends Admin_Controller
{
	var $_table_name = PAGE;
	
	
	function saveItem()
	{
		global $CI;
		/*
		//Check language
		$language = $CI->uri->segment(3);
		if($language=="english"){
			$this->_table_name = $this->_table_name."_en";			
		}
		// model
		*/
		// save to products
		$data = array(
				PAGE_CONTENT_MIDDLE=>$CI->input->post('middle_content')
				);			
			
		$CI->db->where(PAGE_PAGE_ID, $CI->input->post('page_id'));
		$CI->db->update($this->_table_name, $data);	
		
		// go to original page
		redirect('admin/home');
	}		
	
}

?>